﻿package core.ui.controls
{
    import flash.filters.*;
    import flash.text.*;

    public class Text extends TextField
    {

        public function Text(param1:String, param2:int, param3:uint, param4:Boolean = false, param5:Boolean = true)
        {
            this.defaultTextFormat = new TextFormat("Trebuchet MS,Verdana,Helvetica,San-serif", param2, param3, param5);
            this.defaultTextFormat.leading = 0;
            this.height = param2 + 5;
            this.autoSize = TextFieldAutoSize.LEFT;
            this.multiline = false;
            this.selectable = false;
            this.text = param1;
            if (param4)
            {
                this.filters = [new DropShadowFilter(1, 45, 0, 0.3, 0, 0, 1, 3, false)];
            }
            return;
        }// end function

    }
}
